package com.mzj.saas.mservice.my.repository;

import com.mzj.saas.mservice.my.entity.HouseBind;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface HouseBindRepository extends PagingAndSortingRepository<HouseBind, Long>, JpaSpecificationExecutor<HouseBind> {
    List<HouseBind> findByUserIdAndStatus(String userId, Integer status);

    int deleteByUserId(String userId);

    int deleteByHouseIdAndUserId(String houseId, String userId);

}
